package com.ljtg.ljtgservice.service;


import com.ljtg.ljtgpojo.dto.CommodityDTO;
import com.ljtg.ljtgpojo.dto.CommodityPageDTO;
import com.ljtg.ljtgpojo.entity.Commodity;
import com.ljtg.ljtgpojo.vo.CommodityVO;
import com.ljtg.result.PageResult;

import java.util.List;

public interface CommodityService {

    void addCommodity(CommodityDTO commodityDTO);

    CommodityVO getCommodityById(Long id);

    void updateCommodity(CommodityDTO commodityDTO);

    void deleteCommodityById(List<Long> id);

    PageResult pageQuery(CommodityPageDTO commodityPageDTO);

    //条件查询商品
    List<Commodity> list(Long commodityId);


    List<CommodityVO> listWithdetail(Commodity commodity);
}